jade.core
Class Runtime

java.lang.Object
  |
  +--jade.core.Runtime

public class Runtime
extends java.lang.Object

This class is a Singleton class, allowing intial access to the JADE runtime system. Invoking methods on the shared instance of this class (i.e. Runtime.instance(), it is possible to create in-process agent containers.

Author:
Giovanni Rimassa - Universita` di Parma

Method Summary
 AgentContainer createAgentContainer(Profile p)
          Creates a new agent container in the current JVM, providing access through a proxy object.
 MainContainer createMainContainer(Profile p)
          Creates a new main container in the current JVM, providing access through a proxy object.
 void enableDefaultToolkit()
          Deprecated. This method should not be used. It has been temporarily introduced for the JSP example and it will be removed in the next version of JADE
static java.lang.String getCopyrightNotice()
          Return a String with copyright Notice, Name and Version of this version of JADE
static Runtime instance()
          This method returns the singleton instance of this class that should be then used to create agent containers.
 void setCloseVM(boolean flag)
           
 void startUp(Profile p)
          This method just wraps createAgentContainer() or createMainContainer() and is here for compatibility with PersonalJava.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static Runtime instance()
This method returns the singleton instance of this class that should be then used to create agent containers.

createAgentContainer

public AgentContainer createAgentContainer(Profile p)
Creates a new agent container in the current JVM, providing access through a proxy object.
Returns:
A proxy object, through which services can be requested from the real JADE container.

createMainContainer

public MainContainer createMainContainer(Profile p)
Creates a new main container in the current JVM, providing access through a proxy object.
Returns:
A proxy object, through which services can be requested from the real JADE main container.

startUp

public void startUp(Profile p)
This method just wraps createAgentContainer() or createMainContainer() and is here for compatibility with PersonalJava.
See Also:
createAgentContainer(Profile p)

setCloseVM

public void setCloseVM(boolean flag)

enableDefaultToolkit

public void enableDefaultToolkit()
Deprecated. This method should not be used. It has been temporarily introduced for the JSP example and it will be removed in the next version of JADE


getCopyrightNotice

public static java.lang.String getCopyrightNotice()
Return a String with copyright Notice, Name and Version of this version of JADE